angular.module('mePointProductMsgControllers', [])

  .controller('MePointProductMsgCtrl', function ($scope, $state, $timeout, $ionicPlatform,$stateParams, History, MePointProductMsg,Toast) {


    $scope.$on('$ionicView.beforeEnter',function(){
      var mnId = $stateParams['mnId'];
      MePointProductMsg.getResultMsg(mnId);
    });

    $scope.$on('Me.getResultMsg', function () {
      var result = MePointProductMsg.getResultMsgJson();
      console.log(result);
      $scope.resultMsg = result.mn_content;
    });

    //返回操作
    $scope.prePage = function(){
      History.goback();
    }

  });
